<template>
  <div id="app">
    <!--路由的出口-->
    <router-view/>

    <!-- 公共的 tarbar -->
    <!--router-link-->
    <van-tabbar route v-model="active">
      <van-tabbar-item to="/"  icon="wap-home-o">红色资讯</van-tabbar-item>
      <van-tabbar-item to="/knowledge" icon="search">知识库</van-tabbar-item>
      <van-tabbar-item to="/mine" icon="friends-o">我的</van-tabbar-item>
    </van-tabbar>

  </div>
</template>
<script>
  export default {
    data() {
      return {
        active: 0,
      };
    },
  };

</script>

<style lang="less">
  /* less 语法 导入外部的样式文件*/
  @import "~@/assets/reset.less";
  @import "~@/assets/common.less";

  /*pc端优化*/
  #app {
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    min-width: 320px;
    /*border: 1px solid red;*/
  }

</style>
